﻿using ruleEngineDemo.engine.rulesengine;

namespace ruleEngineDemo.engine.factory
{
    public static class EngineExtensions
    {
        public static void AddRulesEngine(this IServiceCollection services)
        {
            //注册工厂实现类
            services.AddScoped<AbstractEngineFactory, RulesEngineFactory>();

            //注册工厂入口
            services.AddScoped<EngineFactory>();
        }
    }
}
